package com.hmall.api.cart;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;

/**
 * 购物车服务Feign接口
 *
 * @Author yml
 * @Date2025/6/17 20:45
 */
@FeignClient(name = "cart-service",path = "/carts")
public interface CartClient {

    /**
     * 批量删除购物车数据Feign接口
     * @param ids
     */
    @DeleteMapping
    public void deleteCartItemByIds(@RequestParam("ids") Collection<Long> ids);
}
